<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<meta name="apple-touch-fullscreen" content="yes" />
		<meta name="format-detection" content="telephone=no"/>
		<meta name="apple-mobile-web-app-status-bar-style" content="black" /> 
		<meta name="msapplication-tap-highlight" content="no" />
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width, viewport-fit=cover" />
		<title>启蒙优选-上课须知</title>
		<link rel="stylesheet" href="__TMPL__/home/public/assets/css/style.css?v=0807" />
		<link rel="stylesheet" href="__TMPL__/home/public/assets/css/swiper.min.css">
	</head>
	<body>
		<!-- 个人中心 --> 
		<div class="noteClassIndex">
			<div class="content">
				<!-- <div class="order_top">
					<div class="title flex juscbtween">
						<a href="javascript:history.go(-1);" class="flex alitemCenter"><img src="__TMPL__/home/public/assets/img/back.png" alt=""></a>
						<b>上课须知</b>
						<span></span>
					</div>
				</div> -->
				<!-- 上课方式 -->
				<div class="deliver_info">
				<notempty name="$oinfo.code_name">
						<div class="title">上课方式</div>
						<div class="exchange flex juscbtween">
							<div class="left flex alitemCenter">
								<if condition="$info.attend_type eq 1">
									<div class="code">手机号：<i id="_number">{$oinfo.mobile}</i></div><img src="__TMPL__/home/public/assets/img/copy.png" alt="" id="copyNum">
								<else />
									<div class="code">兑换码：<i id="_number">{$oinfo.code_name}</i></div><img src="__TMPL__/home/public/assets/img/copy.png" alt="" id="copyNum">
								</if>
								
							</div>
						</div>
						<p style="font-size:.54rem;color:#999;margin-bottom: .68rem;">激活说明：{$info.activate_method}</p>
						<p style="font-size:.54rem;color:#999;margin-bottom: .68rem;">激活时间：{$info.activate_time}</p>
					</div>

					<div class="question">
						<div class="title">常见问题及兑换流程</div>
						{$info.buy_notice}
					</div>

					<else/>
					<div class="question">
						<div class="title">常见问题及兑换流程</div>
						{$info.buy_notice}
					</div>
				</notempty>
			</div>
		</div>
	</body>
	<script rel="stylesheet" src="__TMPL__/home/public/assets/js/jquery-2.0.3.min.js"></script>
	<script rel="stylesheet" src="__TMPL__/home/public/assets/js/layer/layer.js"></script>
  	<script rel="stylesheet" src="https://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
  	<script rel="stylesheet" src="__TMPL__/home/public/assets/js/base.js"></script>
	<script>
		$(function(){
			//复制兑换码
		   	$('#copyNum').on('click', function () {
			    var val = document.getElementById('_number');
			    window.getSelection().selectAllChildren(val);
			    var copyCode = document.execCommand("Copy");

			    if (copyCode) {
			      layer.msg('复制成功');
			    } else {
			      layer.msg('复制失败');
			    }
			});

		})
	</script>
</html>
